<include file="./Tpl/Admin/header.html" />
<div class="main">
  <div class="main_title"> <img src="/Public/Admin/images/book1.gif"/>&nbsp;&nbsp;提现记录 </div>
  <div class="list_body">
    <form action="?s=Admin/Draw/index{$urls}" method="post" >
      用户名：
      <input type="text" name="uname" />
      <input type="hidden" name="urls" value="{$urls}" />
      <input type="submit" value="查询"/>
    </form>
    <form action="?s=Admin/Draw/delAll" method="post" id="formid">
      <table cellspacing=0 cellpadding=0 border=0>
        <th width="5%">选择</th>
          <th width="10%">用户名</th>
          <th width="5%">提现金额</th>
          <th width="5%">手续费</th>
          <th width="10%">实际到账</th>
          <th width="8%">银行</th>
          <th width="10%">卡号</th>
          <th width="5%">姓名</th>
          <th width="5%">状态</th>
          <th width="10%">操作</th>
        </tr>
        <volist name="list" id="vo" empty="$empty">
          <tr>
            <td><input type="checkbox" class="id" name="id[]" value="{$vo.id}"></td>
            <td>{$vo.username}</td>
            <td>{$vo.num}</td>
            <td>{$vo.fee}</td>
            <td>{$vo.rnum}</td>
            <td>{$vo.bankname}</td>
            <td>{$vo.cardnum}</td>
            <td>{$vo.cardname}</td>
            <td>{$vo['status']?'已处理':'未处理'}</td>
            <td><eq name="vo.status" value="0"><a href="?s=Admin/Draw/set/id/{$vo.id}">确认提现</a></eq>
              &nbsp;&nbsp;<a href="?s=Admin/Draw/del/id/{$vo.id}">删除</a></td>
          </tr>
        </volist>
        <tr>
          <td colspan=10 class="page"><input type="button" id="all" value=" 全选 ">
            <input type="button" id="all_return" value=" 全不选 ">
            <input type="button" id="dels" value=" 批量删除 ">
            <a href="?s=Admin/Draw/index/page/1{$urls}">首页</a> <a href="?s=Admin/Draw/index/page/{$page-1}{$urls}">上一页</a> <a href="?s=Admin/Draw/index/page/{$page+1}{$urls}">下一页</a> <a href="?s=Admin/Draw/index/page/{$page_num}{$urls}">尾页</a> </td>
        </tr>
      </table>
    </form>
  </div>
</div>
<include file="./Tpl/Admin/footer.html" />
<script language="javascript">
$(document).ready(function(){
    $('#all').click(function(){
	    $('.id').attr('checked',true);
	});
	$('#all_return').click(function(){
	    $('.id').attr('checked',false);
	});
    $('#dels').click(function(){

		f = 0;
	    $('.id').each(function(){
		    if($(this).attr('checked')) f = 1;
		});
		
        if(f==0){
		    alert('请选择要删除的项！');
		}else{
		    $('#formid').submit();
		}
	});
	$('#add').click(function(){
	    location.href="?s=Admin/Draw/add";
	});
});
</script>
<script type="text/javascript">
	$(document).ready(function(e) {
        //打开子菜单
			$("#collapseNine").addClass("in");	
    });
</script>
